﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using BehaviorFramework;
using System.Collections.ObjectModel;

namespace WpfTestApplication 
{
    /// <summary>
    /// This represents a Model im my MVVM scenario.
    /// </summary>
    public class Dataclass
    {
		public Dataclass()
		{
			Addresses = new List<string>(){"Test1","Test2"};
		}
        public string Name { get; set; }
        public int Age { get; set; }
        public string LastName { get; set; }
        public string MiddleInitial { get; set; }
        public string FavoriteColor { get; set; }
        public DateTime BirthDate { get; set; }

		public IEnumerable<string> Addresses { get; set; }

        //implementation of simple command.  this will get wired up as an icommand automatically as long as it does not have more than one
        //parameter...
        [UseCommandBehavior()]
        public void AlertNameAge3()
        {
            MessageBox.Show(string.Format("Command From Behavior using UseCommandBehavior Attribute with no canexecute specified: {0} {1}'s NameAge is: {2}", Name, LastName, Age));
        }

    }
}
